import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class Okienko extends JFrame{
    public Okienko(){
        ustawOkno();
        ustawKomponenty();
    }

    private void ustawOkno(){
        setSize(new Dimension(200, 150));
        setTitle("Logowanie");
        setLocationRelativeTo(null);

        try {
            UIManager.setLookAndFeel(
                    UIManager.getSystemLookAndFeelClassName());
        }
        catch (Exception e) { }
    }

    private void ustawKomponenty(){
        PanelLogowania panelLogowania = new PanelLogowania();
        add(panelLogowania, BorderLayout.CENTER);
    }

}
